package com.zmzncs.lmtc.module.order.pojo.order_Info;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author 高博文
 * @Date 2020/08/14 16:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderInfoTableVO {

    @ApiModelProperty(value = "车牌号")
    private String carNumber;

    @ApiModelProperty(value = "车辆类型")
    private String carType;

    @ApiModelProperty(value = "订单状态")
    private Integer status;

    @ApiModelProperty(value = "入场时间")
    private Date inTime;

    @ApiModelProperty(value = "进场状况说明")
    private String inMsg;

    @ApiModelProperty(value = "出场时间")
    private Date outTime;

    @ApiModelProperty(value = "出场类型")
    private Integer outType;

    @ApiModelProperty(value = "出场异常信息")
    private String outMsg;

    @ApiModelProperty(value = "停车时长")
    private String parkingTime;

    @ApiModelProperty(value = "应收")
    private BigDecimal parkCost;

    @ApiModelProperty(value = "实收")
    private BigDecimal receivedCost;

    @ApiModelProperty(value = "停车场名称")
    private String parkName;

    @ApiModelProperty(value = "泊链com_id")
    private String bolianComId;

    @ApiModelProperty(value = "泊链park_union_id")
    private String bolianParkUnionId;

    @ApiModelProperty(value = "泊链park_id")
    private String bolianParkId;

    @ApiModelProperty(value = "泊链出场支付类型（0：现金，1：电子支付，2：重复入场）")
    private String outPayType;

    @ApiModelProperty(value = "出场时支付金额")
    private BigDecimal outPayMoney;

    @ApiModelProperty(value = "车场注册来源（1：泊链 2：咪网 ）")
    private Integer parkSource;

    @ApiModelProperty(value = "用户")
    private String nickname;

    @ApiModelProperty(value = "手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    @ApiModelProperty(value = "是否在停车场有月租（0：没有，1：有）")
    private Integer isParkMonthCar;

    @ApiModelProperty(value = "停车场月租开始时间")
    private Date parkMonthStartTime;

    @ApiModelProperty(value = "停车场月租到期时间")
    private Date parkMonthDueTime;

    public void setOutPayType(Integer outPayType){
        if(outPayType == 0){
            this.outPayType = "现金";
        }
        if(outPayType == 1){
            this.outPayType = "电子支付";
        }
        if(outPayType == 2){
            this.outPayType = "重复入场";
        }
    }

}
